package com.joysuch.wwyt.monitoringcenter.bean;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

//监测点详情(id查询)
@Data
public class DetailsPointDateBean {
    private List<MonitoringPointInformationBean> dangerList;
    private List<MonitorRealTimeDataBean> airList;
    private List<MonitoringNumericalInformationBean> facilityList;
    private List<AlarmRecordBean> cameraList;

    public DetailsPointDateBean addDanger(MonitoringPointInformationBean b) {
        if (dangerList == null) {
            dangerList = new ArrayList<MonitoringPointInformationBean>(3);
        }
        dangerList.add(b);
        return this;
    }

    public DetailsPointDateBean addAir(MonitorRealTimeDataBean b) {
        if (airList == null) {
            airList = new ArrayList<MonitorRealTimeDataBean>(3);
        }
        airList.add(b);
        return this;
    }

    public DetailsPointDateBean addFacility(MonitoringNumericalInformationBean b) {
        if (facilityList == null) {
            facilityList = new ArrayList<MonitoringNumericalInformationBean>(3);
        }
        facilityList.add(b);
        return this;
    }

    public DetailsPointDateBean addCamera(AlarmRecordBean b) {
        if (cameraList == null) {
            cameraList = new ArrayList<AlarmRecordBean>(3);
        }
        cameraList.add(b);
        return this;
    }


}
